package com.syezon.android.base.download;

public class DownloadInfo {
    private String downloadId;
    private long totalSize;
    private long completedSize;
    private String url;
    private String saveDirPath;
    private String fileName;
    private int downloadStatus = DownloadStatus.DOWNLOAD_STATUS_INIT;

    public DownloadInfo(String downloadId, long totalSize, long completedSize,
                        String url, String saveDirPath, String fileName,
                        int downloadStatus) {
        this.downloadId = downloadId;
        this.totalSize = totalSize;
        this.completedSize = completedSize;
        this.url = url;
        this.saveDirPath = saveDirPath;
        this.fileName = fileName;
        this.downloadStatus = downloadStatus;
    }

    public DownloadInfo() {
    }

    public String getDownloadId() {
        return this.downloadId;
    }

    public void setDownloadId(String downloadId) {
        this.downloadId = downloadId;
    }

    public long getTotalSize() {
        return this.totalSize;
    }

    public void setTotalSize(Long totalSize) {
        this.totalSize = totalSize;
    }

    public long getCompletedSize() {
        return this.completedSize;
    }

    public void setCompletedSize(Long completedSize) {
        this.completedSize = completedSize;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSaveDirPath() {
        return this.saveDirPath;
    }

    public void setSaveDirPath(String saveDirPath) {
        this.saveDirPath = saveDirPath;
    }

    public String getFileName() {
        return this.fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getDownloadStatus() {
        return this.downloadStatus;
    }

    public void setDownloadStatus(Integer downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    @Override
    public String toString() {
        return "DownloadDBEntity{" +
                "downloadId=" + downloadId +
                ", completedSize='" + completedSize + '\'' +
                ", totalSize=" + totalSize +
                ", url='" + url + '\'' +
                ", saveDirPath='" + saveDirPath + '\'' +
                ", fileName='" + fileName + '\'' +
                ", downloadStatus=" + downloadStatus +
                '}';
    }
}
